home *** CD-ROM | disk | FTP | other *** search
- Subject: RE: ODF Popups
- Sent: 6/24/96 12:26 AM
- Received: 6/24/96 8:24 AM
- From: Leo Hagebeek, as-plus@abecon.nl
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Laurant,
- Thanks for your clues. But unfortunately it's not the solution. I did have a
- MENU resource available! When I compared the ODF-sample Forms with my resource
- I noticed that the only difference was the font. I want to display the popup
- in GENEVA 9. The sample uses the system font. In FWContrH.cpp the procId is
- raised with kControlUsesOwningWindowsFontVariant. I was unable to find this
- constant, but I figure that it's popupUseWFont as described in Inside
- Macintosh. This means that the font of the owning window is used. Where is it
- defined in ODF? In my resource there is only a position of the superview.
-
- Leo Hagebeek
- AS-PLUS B.V.
- Naarden, The Netherlands
- E-mail: as-plus@abecon.nl
- _______________________________________________________________________________
- From: ODF-Interest@CILabs.ORG on woe, 12 jun 1996 19:14
- Subject: Re: ODF Popups
- To: OpenDoc Development Framework Discussion List
-
- >My resource looks like this:
- >
- >FW_RPopupMenu
- >(
- > krInitialFont, // identifier
- > { FW_FIX()...FW_FIX() }, // coordinates
- > FW_kFixedBounds,
- > FW_kPopupClickedMsg,
- > FW_kFrameReceiver,
- > 0,
- > krInitialMenu, // resource id
- > 0,
- > 1,
- > 4, // popupUseAddResMenu
- > 'FONT',
- > GENEVA9, // font
- > ""
- >)
- >
- >I want my popup to show all FONT's in my system. According to the
- >comments in the ODF files and from what I know from Inside Macintosh
- >this should work. But it doesn't. With this resource there is no popup
- >at all in my view.
-
- Your problem may come from the fact that you haven't defined a MENU
- resource with the id "krInitialMenu" in your part. I just tried to
- modify ODF Form's Views.fr, putting 4 and 'FONT' in the first popup
- menu resource (kBrowseTimePopupID), and it does show the list of
- fonts in addition to the 4 menu items of MENU #1000.
- So you must define at least an empty MENU resource otherwise the
- control manager doesn't create the popup.
-